package com.onlinemovies.repository.extension;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.onlinemovies.entity.HallDetails;
import com.onlinemovies.entity.ShowDetails;
import com.onlinemovies.repository.AbstractRepository;
@Repository("ShowRepoitory")
public class ShowRepoitory  extends AbstractRepository<ShowDetails> implements Serializable{

	@SuppressWarnings("unchecked")
	public List<ShowDetails> getAll() {
	        return entityManager
	        		.createQuery("SELECT s FROM ShowDetails s ORDER BY s.showfrom")
	        		.getResultList();
	    }

}
